3.3.3 \(\int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx\) [203]

Optimal. Leaf size=208 \[ \frac {2 \sqrt {a+b} d \cot (e+f x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a f} \]

[Out]

2*d*cot(f*x+e)*EllipticF((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))
/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f-2*c*cot(f*x+e)*EllipticPi((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2)
,(a+b)/a,((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/a/f

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 208, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {4006, 3869, 3917} \begin {gather*} \frac {2 d \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b f}-\frac {2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a f} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(c + d*Sec[e + f*x])/Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(2*Sqrt[a + b]*d*Cot[e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b
*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(b*f) - (2*Sqrt[a + b]*c*Cot[e + f*x]*E
llipticPi[(a + b)/a, ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x])
)/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(a*f)

Rule 3869

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b
*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b)*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b
*Csc[c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3917

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(Rt[a + b, 2]/(b*
f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin
[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 4006

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {c+d \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx &=c \int \frac {1}{\sqrt {a+b \sec (e+f x)}} \, dx+d \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx\\ &=\frac {2 \sqrt {a+b} d \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{b f}-\frac {2 \sqrt {a+b} c \cot (e+f x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{a f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 2.45, size = 145, normalized size = 0.70 \begin {gather*} \frac {4 \cos ^2\left (\frac {1}{2} (e+f x)\right ) \sqrt {\frac {\cos (e+f x)}{1+\cos (e+f x)}} \sqrt {\frac {b+a \cos (e+f x)}{(a+b) (1+\cos (e+f x))}} \left ((-c+d) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )+2 c \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )\right ) \sec (e+f x)}{f \sqrt {a+b \sec (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(c + d*Sec[e + f*x])/Sqrt[a + b*Sec[e + f*x]],x]

[Out]

(4*Cos[(e + f*x)/2]^2*Sqrt[Cos[e + f*x]/(1 + Cos[e + f*x])]*Sqrt[(b + a*Cos[e + f*x])/((a + b)*(1 + Cos[e + f*
x]))]*((-c + d)*EllipticF[ArcSin[Tan[(e + f*x)/2]], (a - b)/(a + b)] + 2*c*EllipticPi[-1, ArcSin[Tan[(e + f*x)
/2]], (a - b)/(a + b)])*Sec[e + f*x])/(f*Sqrt[a + b*Sec[e + f*x]])

________________________________________________________________________________________

Maple [A]
time = 2.90, size = 215, normalized size = 1.03

method result size
default \(-\frac {2 \sqrt {\frac {a \cos \left (f x +e \right )+b}{\cos \left (f x +e \right )}}\, \sqrt {\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \sqrt {\frac {a \cos \left (f x +e \right )+b}{\left (\cos \left (f x +e \right )+1\right ) \left (a +b \right )}}\, \left (\cos \left (f x +e \right )+1\right )^{2} \left (-1+\cos \left (f x +e \right )\right ) \left (\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) c -\EllipticF \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, \sqrt {\frac {a -b}{a +b}}\right ) d -2 \EllipticPi \left (\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}, -1, \sqrt {\frac {a -b}{a +b}}\right ) c \right )}{f \left (a \cos \left (f x +e \right )+b \right ) \sin \left (f x +e \right )^{2}}\) \(215\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x,method=_RETURNVERBOSE)

[Out]

-2/f*((a*cos(f*x+e)+b)/cos(f*x+e))^(1/2)*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*((a*cos(f*x+e)+b)/(cos(f*x+e)+1)/(a
+b))^(1/2)*(cos(f*x+e)+1)^2*(-1+cos(f*x+e))*(EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*c-Ellip
ticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*d-2*EllipticPi((-1+cos(f*x+e))/sin(f*x+e),-1,((a-b)/(a+b)
)^(1/2))*c)/(a*cos(f*x+e)+b)/sin(f*x+e)^2

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

integrate((d*sec(f*x + e) + c)/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

integral((d*sec(f*x + e) + c)/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {c + d \sec {\left (e + f x \right )}}{\sqrt {a + b \sec {\left (e + f x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))**(1/2),x)

[Out]

Integral((c + d*sec(e + f*x))/sqrt(a + b*sec(e + f*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sec(f*x+e))/(a+b*sec(f*x+e))^(1/2),x, algorithm="giac")

[Out]

integrate((d*sec(f*x + e) + c)/sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {c+\frac {d}{\cos \left (e+f\,x\right )}}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c + d/cos(e + f*x))/(a + b/cos(e + f*x))^(1/2),x)

[Out]

int((c + d/cos(e + f*x))/(a + b/cos(e + f*x))^(1/2), x)

________________________________________________________________________________________